<?php
namespace App\Console\Commands\MonthlyReportLT;

use App\Logic\SalesReportLT\PaymentReportWork;
use Illuminate\Console\Command;
class PaymentReport extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'lt-payment:report {date=null}';

    /**
     * The console command description.
     * 月销售报表核算及公共费用
     * @var string
     */
    protected $description = 'accounting payment report';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $date = $this->argument('date');
        $model = $this->choice('choice exe item: ', ['detail', 'common-fee','classify', 'seller', 'none-classify', 'none']);
        PaymentReportWork::accounting($model,$date);
        $this->info($model.' exe success!');
        die('finish');
    }
}
